package com.jingxi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class showHtmlController {

    @RequestMapping(value = "/index",method = RequestMethod.GET)
    public String index(){
        return "index";
    }
    @RequestMapping(value = "/rest/page/item-edit",method = RequestMethod.GET)
    public String item_edit(){
        return "item-edit";
    }
    @RequestMapping(value = "/item-list",method = RequestMethod.GET)
    public String item_list(){
        return "item-list";
    }
    @RequestMapping(value = "/item-add",method = RequestMethod.GET)
    public String item_add(){
        return "item-add";
    }
    //内容分类管理
    @RequestMapping(value = "/content-category",method = RequestMethod.GET)
    public String content_category(){
        return "content-category";
    }
    //内容管理
    @RequestMapping(value = "/content",method = RequestMethod.GET)
    public String content(){
        return "content";
    }
    @RequestMapping(value = "/content-add",method = RequestMethod.GET)
    public String content_add(){
        return "content-add";
    }
    @RequestMapping(value = "/content-edit" ,method=RequestMethod.GET)
    public String content_edit(){
        return "content-edit";
    }

}
